var id = $.query.get("id");

$(function () {
    $.getJSON("easybuy/home/product",
        {"id":id},
        function (data) {
            $(".i_bg").html("<div class=\"postion\">\n" +
                "    \t<span class=\"fl\">全部 > "+data.name+"</span>\n" +
                "    </div>");
            $(".i_bg").append("<div class=\"content\">\n" +
                "        <div id=\"tsShopContainer\">\n" +
                "            <div id=\"tsImgS\"><a href=\"images/"+data.fileName+"\" title=\"Images\" class=\"MagicZoom\" id=\"MagicZoom\"><img src=\"images/"+data.fileName+"\" width=\"390\" height=\"390\" /></a></div>\n" +
                "            <div id=\"tsPicContainer\">\n" +
                "                <div id=\"tsImgSArrL\" onclick=\"tsScrollArrLeft()\"></div>\n" +
                "                <div id=\"tsImgSCon\">\n" +
                "                    <ul>\n" +

                "                    </ul>\n" +
                "                </div>\n" +
                "                <div id=\"tsImgSArrR\" onclick=\"tsScrollArrRight()\"></div>\n" +
                "            </div>\n" +
                "        </div>\n" +
                "        \n" +
                "        <div class=\"pro_des\">\n" +
                "        \t<div class=\"des_name\">\n" +
                "            \t<p>"+data.name+"</p>\n" +
                            data.description+
                "            </div>\n" +
                "            <div class=\"des_price\">\n" +
                "            \t本店价格：<b>￥"+data.price+"</b><br />\n" +
                "                消费积分：<span>28R</span>\n" +
                "            </div>\n" +
                "            <div class=\"des_choice\">\n" +
                "            \t<span class=\"fl\">型号选择：</span>\n" +
                "                <ul>\n" +
                "                \t<li class=\"checked\">30ml<div class=\"ch_img\"></div></li>\n" +
                "                    <li>50ml<div class=\"ch_img\"></div></li>\n" +
                "                    <li>100ml<div class=\"ch_img\"></div></li>\n" +
                "                </ul>\n" +
                "            </div>\n" +
                "            <div class=\"des_choice\">\n" +
                "            \t<span class=\"fl\">颜色选择：</span>\n" +
                "                <ul>\n" +
                "                \t<li>红色<div class=\"ch_img\"></div></li>\n" +
                "                    <li class=\"checked\">白色<div class=\"ch_img\"></div></li>\n" +
                "                    <li>黑色<div class=\"ch_img\"></div></li>\n" +
                "                </ul>\n" +
                "            </div>\n" +
                "            <div class=\"des_share\">\n" +
                "            \t<div class=\"d_sh\">\n" +
                "                \t分享\n" +
                "                    <div class=\"d_sh_bg\">\n" +
                "                    \t<a href=\"#\"><img src=\"images/sh_1.gif\" /></a>\n" +
                "                        <a href=\"#\"><img src=\"images/sh_2.gif\" /></a>\n" +
                "                        <a href=\"#\"><img src=\"images/sh_3.gif\" /></a>\n" +
                "                        <a href=\"#\"><img src=\"images/sh_4.gif\" /></a>\n" +
                "                        <a href=\"#\"><img src=\"images/sh_5.gif\" /></a>\n" +
                "                    </div>\n" +
                "                </div>\n" +
                "                <div class=\"d_care\"><a href='javascript:void(0)'>关注商品</a></div>\n" +
                "            </div>\n" +
                "            <div class=\"des_join\">\n" +
                "            \t<div class=\"j_nums\">\n" +
                "                \t<input type=\"text\" value=\"1\" name=\"\" class=\"n_ipt\" readonly/>\n" +
                "<input type=\"hidden\" value=\"1\" name=\"\" class=\"myinput\" />"+
                "                    <input type=\"button\" value=\"\" onclick=\"addUpdate(jq(this));\" class=\"n_btn_1\" />\n" +
                "                    <input type=\"button\" value=\"\" onclick=\"jianUpdate(jq(this));\" class=\"n_btn_2\" />   \n" +
                                  "<input type='hidden' class='productid' value='"+data.id+"'>"+
                "                </div>\n" +
                "                <span class=\"fl\"><a href='javascript:void(0)'><img src=\"images/j_car.png\" /></a></span>\n" +
                "            </div>            \n" +
                "        </div>    \n" +
                "        \n" +
                "        <div class=\"s_brand\">\n" +
                "        \t<div class=\"s_brand_img\"><img src=\"images/sbrand.jpg\" width=\"188\" height=\"132\" /></div>\n" +
                "            <div class=\"s_brand_c\"><a href=\"javascript:void(0)\">进入品牌专区</a></div>\n" +
                "        </div>    \n" +
                "        \n" +
                "        \n" +
                "    </div>");
        });
});